package com.example.petstore.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author liuhongbin
 * @since 2024-07-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("adress")
@ApiModel(value="Adress对象", description="")
public class Adress implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "收货人名字")
    @TableField("getName")
    private String getName;

    @ApiModelProperty(value = "地区")
    @TableField("location")
    private String location;

    @ApiModelProperty(value = "详细地址")
    @TableField("detailLocation")
    private String detailLocation;

    @ApiModelProperty(value = "默认地址1，不是默认地址0")
    @TableField("isDefault")
    private Integer isDefault;

    @ApiModelProperty(value = "创建时间")
    @TableField("creatTime")
    private LocalDateTime creatTime;

    @ApiModelProperty(value = "更新时间")
    @TableField("updateTime")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "用户id")
    @TableField("userId")
    private Long userId;


}
